<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
</head>
<body>
<table class="queryTable" >
	<tr>
		<td class="queryTitle" width="68px">订单状态</td>
		<td class="queryContent">
			<select id="queryState" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px">
				<option value="0" selected>[不限]</option>
				<option value="10">待支付</option>
				<option value="11">已支付</option>
				<option value="12">支付失败</option>
				<option value="20">制作中</option>
				<option value="30">配送中</option>
				<option value="40">完成</option>
				<option value="50">取消</option>
			</select> 
		</td>
		<td class="queryTitle" width="68px">合作方</td>
		<td class="queryContent">
			<select id="queryPartner" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px">
				<option value="3" selected>酒单网</option>
			</select> 
		</td>
		<td class="queryTitle" width="68px">支付平台</td>
		<td class="queryContent">
			<select id="queryPayPf" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px">
				<option value="0" selected>[不限]</option>
				<option value="10">微信</option>
				<option value="20">支付宝</option>
			</select> 
		</td>
		<%-- <td class="queryTitle" width="68px">订单类型</td>
		<td class="queryContent">
			<select id="queryType" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px">
				<option value="" selected>[不限]</option>
			</select> 
		</td> --%>
		<td class="queryTitle" width="68px">用户手机</td>
		<td class="queryContent">
			<input class="inputText" type="text" style="width:120px" id="queryMobile" /> 
		</td>
	</tr>
	<tr>
		<td class="queryTitle width="68px">起始日期</td>
		<td class="queryContent">
			<input id="queryDateStart" class="easyui-datebox" style="width:120px">
		</td>
		<td class="queryTitle width="68px">截止日期</td>
		<td class="queryContent">
			<input id="queryDateEnd" class="easyui-datebox" style="width:120px">
		</td>
		<td class="queryTitle" width="68px">订单编号</td>
		<td class="queryContent">
			<input class="inputText" type="text" style="width:120px" id="queryOrderNo" />
		</td>
		<!-- <td class="queryTitle" width="68px">发票ID</td>
		<td class="queryContent">
			<input class="inputText" type="text" style="width:120px" id="queryInvId" /> 
		</td> -->
		<td class="queryBtnTd" colspan="2">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery()">查询</a>
		</td>
	</tr>
</table>

<table id="ordersGrid"></table>

<div id="stateDlg" class="easyui-window" title="" closed="true" style="width:600px; height:280px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="stateForm"  method="POST">
			<s:hidden name="updOrderId" id="updOrderId"/>
			<s:hidden name="updDetailId" id="updDetailId"/>
			<s:hidden name="updRecdInfo" id="updRecdInfo"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="stateTable">
				<tr>	
					<td class="queryTitle" width="100px">订单/明细编号</td>
					<td class="queryContent" >
						<span id="updOrderNo" style="color:red;"></span>
					</td>
				</tr>
				<tr>
					<td class="queryTitle" width="100px">反馈状态</td>
					<td class="queryContent">
						<select id="updOrderState" class="easyui-combobox" panelHeight="auto" editable="false" style="width:120px" >
							<option value="0" selected>[未知]</option>
							<option value="10">待支付</option>
							<option value="11">已支付</option>
							<option value="12">支付失败</option>
							<option value="20">制作中</option>
							<option value="30">配送中</option>
							<option value="40">完成</option>
							<option value="50">取消</option>
						</select>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">描述信息</td>
					<td class="queryContent">
						<textarea id="updDesc" rows="6" cols="55" class="inputText easyui-validatebox" style="width:100%;resize:none;"></textarea>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="stateBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdState()">更新</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdState()">取消</a>
    </div>
</div>

<div id="detailDlg" class="easyui-window" title="" closed="true" style="width:900px; height:500px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px;">
		<form id="detailForm"  method="POST">
			<s:hidden name="dtlOrderId" id="dtlOrderId"/>
			<table border="0" class="queryTable" width="440px" height="auto" style="margin-bottom:0px;" id="dtlTable">
				<tr>	
					<td class="queryTitle" width="100px">(主)订单编号</td>
					<td class="queryContent" width="100px">
						<span id="dtlOrderNo" style="color:red;"></span>
					</td>
					<td class="queryTitle" width="100px">用户ID</td>
					<td class="queryContent" width="100px">
						<span id="dtlUserId" style="color:red;"></span>
					</td>
				</tr>
			</table>
			<table id="detailGrid"></table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="detailBtn">
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="closeDetail()">关闭</a>
    </div>
</div>

<div id="expressDlg" class="easyui-window" title="" closed="true" style="width:500px; height:200px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px;">
		<form id="expressForm"  method="POST">
			<s:hidden name="expDetailId" id="expDetailId"/>
			<table border="0" class="queryTable" width="400px" height="auto" style="margin-bottom:0px;" id="expressTable">
				<tr>	
					<td class="queryTitle" width="100px">订单明细编号</td>
					<td class="queryContent" >
						<span id="expDetailNo" style="color:red;"></span>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">快递/物流公司</td>
					<td class="queryContent" >
						<input class="inputText" type="text" style="width:240;" id="editExpress" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">运单号</td>
					<td class="queryContent" >
						<input class="inputText" type="text" style="width:240;" id="editTrackNo" />
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="expressBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdExp()">更新</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdExp()">取消</a>
    </div>
</div>

<div id="downDlg" class="easyui-window" title="" closed="true" style="width:400px; height:140px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px;">
		<form id="downForm"  method="POST">
			<table border="0" class="queryTable" width="360px" height="auto" style="margin-bottom:0px;" id="downTable">
				<tr>	
					<td class="queryTitle" width="100px" height="30px"><span style="color:red;">点击下载</span></td>
					<td class="queryContent" width="260px" >
						<a id="downA"></a>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="downBtn">
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelDown()">取消</a>
    </div>
</div>

<script type="text/javascript" src="${ctx}/js/tg/uploadcom.js"></script>
<script type="text/javascript" src="${ctx}/js/tg/ajaxupload.js"></script>
<script type="text/javascript" src="${ctx}/js/trade/orderInfo2.js"></script>
<script type="text/javascript" src="${ctx}/js/encrypt/encrypted-min.js"></script>
</body>
</html>
